﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BL.UAClientRemotingInterface
{
    public interface IUserAuthority
    {
        string GetUserId(string user_name);
        string GetUserName(string user_id);
        string GetUserRealName(string user_id);
        string GetDepartmentId(string user_id);
        string GetDepartmentName(string user_id);
        string GetDepartmentPName(string user_id);
        string GetUserIdBySN(string department_sn, string user_password);
        string GetUserIdBySNRealName(string department_sn, string user_realname);
        bool UserIndentify(string user_name, string user_password);
        bool UserIndentify(string user_name, string user_password, string user_type_id);
        bool FUserIndentify(string user_name, string user_password);
        bool UserIndentifyBySN(string department_sn, string user_password);
        bool UserIndentifyByDeptRealName(string department_sn, string user_realname);
        void RaiseUserLogin(string user_name,string user_ip, string user_hostname);
        void RaiseUserLogout(string user_hostname);
    }
}
